The phrase "to smell the coffee" means to wake up and become aware of reality or the truth of a situation.